/*
 * Copyright (C) 2011, EADS France
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 */
package xowl.interpreter.observers;

import xowl.interpreter.Observer;

/**
 *
 * @author Laurent WOUTERS
 */
public abstract class ClassObserver extends Observer {
    protected xowl.lang.runtime.Class _class;
    
    public xowl.lang.runtime.Class getObservedClass() { return _class; }
    
    public ClassObserver(xowl.lang.runtime.Class c) { _class = c; }
    
    public abstract void onNewInstance(xowl.lang.runtime.Individual individual);
    public abstract void onDestroyInstance(xowl.lang.runtime.Individual individual);
}
